import request from '@/utils/Request'
import { stringify } from 'qs';

export async function getList(params) {
  return request(`/joker/dictionary/queryList?${stringify(params)}`, {
    method: 'GET'
  });
}

export async function deleteById(params) {
  return request(`/joker/dictionary/delete?${stringify(params)}`, {
    method: 'GET'
  });
}

export async function update(params) {
  return request('/joker/dictionary/update', {
    method: 'POST',
    data: {
      ...params
    }
  });
}

export async function add(params) {
  return request('/joker/dictionary/add', {
    method: 'POST',
    data: {
      ...params
    }
  });
}

